package cn.clq.ymcc.feign;

import cn.clq.ymcc.domain.Login;
import cn.clq.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-common",fallbackFactory = CourseOnSendMessageFeignClientFallBackFactory.class)
public interface CourseOnSendMessageFeignClient {

    @PostMapping("/messageSms/sendMessage")
    JSONResult sendSms(@RequestBody List<String> logininfo);

    @PostMapping("/messageEmail/sendEmail")
    JSONResult sendEmail(@RequestBody List<String> logininfo);

    @PostMapping("/messageStation/sendStation")
    JSONResult sendStation(@RequestBody List<String> logininfo);
}
